using System;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Dialog_Calendar : Page
{
    #region Methods

    #region Event Handlers

    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void CalMain_OnDayRender(object sender, DayRenderEventArgs e)
    {
        try
        {
            e.Cell.Controls.Clear();
            e.Cell.Text =
                string.Format(
                    "<a href=\"javascript:" +
                    string.Format("selecionaDia('{0}','{1}','{2}');", e.Day.Date.ToString("dd/MM/yyyy"), Request["Form"],
                                  Request["Control"]) + "\" Title=\"{1}\">{0}</a>", e.Day.DayNumberText,
                    e.Day.Date.ToString("dd/MM/yyyy"));
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }

    #endregion

    #endregion
}